package com.digicom.common.constant;

/**
 * 系统常量
 */
public class Constants {
    /** 成功标记 */
    public static final String SUCCESS = "0";

    /** 失败标记 */
    public static final String FAIL = "1";

    /** 登录用户Redis key前缀 */
    public static final String LOGIN_USER_KEY = "login_user";

    /** 令牌有效期（默认30分钟） */
    public static final int EXPIRATION = 30 * 60;

    /** 令牌刷新时间 */
    public static final int REFRESH_TIME = 10 * 60;

    /**
     * 用户类型
     */
    public static final String USER_TYPE_ADMIN = "00";
    public static final String USER_TYPE_NORMAL = "01";

    /**
     * 用户状态
     */
    public static final String USER_STATUS_NORMAL = "0";
    public static final String USER_STATUS_DISABLED = "1";

    /**
     * 专题状态
     */
    public static final String TOPIC_STATUS_DRAFT = "0";
    public static final String TOPIC_STATUS_PUBLISHED = "1";

    /**
     * 文章状态
     */
    public static final String ARTICLE_STATUS_DRAFT = "0";
    public static final String ARTICLE_STATUS_PUBLISHED = "1";
    public static final String ARTICLE_STATUS_REJECT = "2";

    /**
     * 文章类型
     */
    public static final String ARTICLE_TYPE_FREE = "0";
    public static final String ARTICLE_TYPE_PAID = "1";

    /**
     * 评论状态
     */
    public static final String COMMENT_STATUS_PENDING = "0";
    public static final String COMMENT_STATUS_NORMAL = "1";
    public static final String COMMENT_STATUS_REJECT = "2";
    public static final String COMMENT_STATUS_REJECTED = "2";

    /**
     * 互动类型
     */
    public static final String INTERACTION_TYPE_LIKE = "1";
    public static final String INTERACTION_TYPE_COLLECT = "2";
    public static final String INTERACTION_TYPE_SHARE = "3";

    /**
     * 支付状态
     */
    public static final String PAY_STATUS_PENDING = "0";
    public static final String PAY_STATUS_SUCCESS = "1";
    public static final String PAY_STATUS_FAIL = "2";

    /**
     * 退款状态
     */
    public static final String REFUND_STATUS_NO = "0";
    public static final String REFUND_STATUS_PENDING = "1";
    public static final String REFUND_STATUS_SUCCESS = "2";
    public static final String REFUND_STATUS_FAIL = "3";

    /**
     * Kafka主题
     */
    public static final String TOPIC_TOPIC_SYNC = "topic.sync";
    public static final String TOPIC_ARTICLE_SYNC = "article.sync";
    public static final String TOPIC_COMMENT_SYNC = "comment.sync";
    public static final String TOPIC_INTERACTION_SYNC = "interaction.sync";
    public static final String TOPIC_ORDER_SYNC = "order.sync";
} 